//
//  YLActionSheetItem.swift
//  Swift-Codedase
//
//  Created by xyanl on 2024/4/11.
//  Copyright © 2024 考拉🐨. All rights reserved.
//

import UIKit

class YLActionSheetItem: NSObject {

    var tag: Int = 0
    
    /// 标题
    var title: String = ""
    var titleFont: UIFont = .systemFont(ofSize: 16, weight: .regular)
    var titleColor: UIColor = UIColor(hex: "#333333")
    var titleDarkColor: UIColor = .white
    
    /// 副标题
    var subtitle: String = ""
    var subtitleFont: UIFont = .systemFont(ofSize: 12, weight: .regular)
    var subtitleColor: UIColor = UIColor(hex: "#666666")
    var subtitleDarkColor: UIColor = .white.setAlpha(0.8)
    
    /// 背景颜色
    var backgroundColor: UIColor = .white
    /// 底部线颜色
    var lineColor: UIColor = UIColor(hex: "#EEEEEE")
    /// 长按选中颜色
    var selectColor: UIColor = UIColor(hex: "#E5E5E5")
    /// cell高度
    var rowHeight: CGFloat = 55.0
    
    /// 是否可以选择
    var isCanSelect: Bool = true
    
    /// 自定义属性
    var customData: AnyObject?
    
    init(title: String, subtitle: String = "", tag: Int = 0) {
        self.title = title
        self.subtitle = subtitle
        self.tag = tag
        super.init()
        
        if !subtitle.isEmpty {
            rowHeight = 76.0
        }
        
    }
    
    override init() {
        super.init()
    }
    
}
